import React from 'react';
import { BrowserRouter, Route, Switch } from 'react-router-dom';
import One from './view/one';
import App from './App'

const BasicRoute = () => {
  // <BrowserRouter>
  //   <Switch>
  //     <Route exact path="/" component={App}></Route>
  //     <Route exact path="/one" component={One}></Route>
  //   </Switch>
  // </BrowserRouter>
  <BrowserRouter>
    <Route exact path="/ok" component={App}></Route>
    <Route exact path="/one" component={One}></Route>
  </BrowserRouter>
}

export default BasicRoute;